home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3979 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.3 KB  |  60 lines

  1. Newsgroups: comp.lang.c
  2. Path: news.sprintlink.net!eskimo!news
  3. From: mag@eskimo.com (mAg)
  4. Subject: Re: ???unresolved external???
  5. X-Nntp-Posting-Host: tia1.eskimo.com
  6. Message-ID: <DM35r2.64y@eskimo.com>
  7. Sender: news@eskimo.com (News User Id)
  8. Organization: *.*
  9. X-Newsreader: WinVN 0.93.10
  10. References: <4edmnn$m53@reader2.ix.netcom.com>
  11. Date: Thu, 1 Feb 1996 07:21:01 GMT
  12.  
  13. In article <4edmnn$m53@reader2.ix.netcom.com> (Sat, 27 Jan 1996 17:16:54 GMT), mlwillia@ix.netcom.com 
  14. says :
  15. >
  16. >Although this question may appear to be easy, I dont think it is. ( At
  17. >least it is not becuase I haven't tried to link in the appropriate
  18. >library.)
  19. >
  20. >Here's my problem:
  21. >
  22. >I'm trying to write a small Windows DLL using some functions in a
  23. >library I received from a vendor.  Apparently this library has only
  24. >been used for DOS programs and was written back in 1992 sometime.
  25. >When I try to compile the DLL (using Microsoft Visual C++ v1.52), I
  26. >keep getting an "unresolved external' for the function in the library.
  27. >
  28. >I'm using the exact syntax out of the header file.  I can even get a
  29. >DOS executable to compile using the library.  My questions are:
  30. >
  31. >1.  Is it possilble to create a DOS-only Library?
  32.  
  33. Yes is it possible to compile a DOS-only LIB file. Remove the main() from your program, and it will 
  34. be just a collection of functions. Compile it to make an OBJ and use the LIB to make the LIB file out 
  35. of the OBJ module.
  36. >
  37. >2.  Assuming the above IS NOT true, are there certain flags I need to
  38. >set in order to access this funciton?  (I've tried changing the
  39. >calling convention to PASCAL - no luck.)
  40. >
  41.  
  42. To make a Windows DLL, lot of rules need to be followed. Please refer to the Windows SDK manuals for 
  43. detailed information.
  44.  
  45. >3.  Is there a program somewhere that will let me look at how a
  46. >function is defined in a LIB file?
  47. >
  48. There are no special requirements for making LIB files. LIB files are just a collection of OBJs.
  49.  
  50. hope that helps..
  51. -- 
  52. /* --------------------------------------------------------
  53.                       MAG@ESKIMO.COM
  54. http://www.eskimo.com/~mag/index.html
  55. ***********************************************************
  56. To understand recursion one must first understand recursion
  57. ***********************************************************
  58. -------------------------------------------------------- */
  59.  
  60.